home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine CD 1995
/
Archive Magazine CD 1995.iso
/
discs
/
pipeline
/
6_01
/
A4Booting
/
HDBoot
/
!ReadMe
Wrap
Text File
|
1990-09-28
|
4KB
|
100 lines
Hard disc booting routines
© Ben Summers 1990
Hard disc booting routines
~~~~~~~~~~~~~~~~~~~~~~~~~~
The idea of these routines is to make a boot file for a hard disc which can
be switched on and off with a WIMP application, and the opposite option
selected when a mouse button is held down.
The !Boot application should be copied to the root directory of the hard
disc, and the !BootCtrl appliction should be copied to somewhere on the disc
(I suggest the root directory again).
The machine must then be configured as follows:
*Configure FileSystem XXXX <<-- name of filing system e.g. ADFS or SCSI
*Configure Drive X <<-- number of drive
*Configure Boot
Then select the root directory of the hard disc as the current directory
(e.g. *Mount X where X is the number of the drive), then type *Opt 4,2 to
set the boot option of that disc.
Using !BootCtrl
~~~~~~~~~~~~~~~
Load the application, then select the on or off icon. Click on OK to set the
option. The application sets a location reserved for the user in the battery
backed RAM, which can be read with the utility LC.
Customizing the boot file
~~~~~~~~~~~~~~~~~~~~~~~~~
The file StartUp in the application directory contains a list of *commands.
These can start multi-tasking applications (and only multi-tasking
applications), or be simple *commands (e.g. HourOn - see later in this
file).
Have a look at the file supplied to give an idea of how to do it.
The file !Run can be used to load modules used by all the startup files or
that you would want to use often, like extra modes.
There is a utility called WM which sets the wimp mode to its first command
line parameter. Use this if you want to set different modes in different
startup files, or you want to use a mode in a module which you have loaded
before.
Mode53
~~~~~~
This module provides a large multi-sync mode. It is number 53 (surprise
surprise).
HourExt
~~~~~~~
This module provides a *command interface to the Hourglass module. It provides the following commands:
*HourOn Turns the hourglass on
*HourOff Turns the hourglass off
*HourLED <n> <n> Sets the LEDs on the hourglass. See the PRM for how the
numbers affect it
*HourPercent <n> Sets the percentage on the hourglass
*HourStart <n> Starts the hourglass after n centi-seconds
*HourSetInc <n> Sets the increment step for *HourInc
*HourInc Increments the percentage on the hourglass by the value
set with *HourSetInc
These commands can be used to show how far the startup procedure has got.
How it works
~~~~~~~~~~~~
The boot routines use two utilitys - LC and MB:
LC
~~
This utility loads the configuration of the boot file set by the BootCtrl
application. It sets the system variable Boot$Config to On or Off.
MB
~~
This utility reads the status of the mouse buttons. It then sets the system
variable Mouse$Button to None, Left, Middle or Right. If a mouse button is
held down, it will make a sound to tell you that you can release the mouse
button.
After each of these utilitys have been run, it looks to see what the system
variables they set are, and runs the appropriate files.
The author
~~~~~~~~~~
These routines were written by Ben Summers. If you have any bugs (what?) to
report or comments to make, please contact me at the address below. Please
enclose an SAE.
Ben Summers
39A Cromer Road
Hellesdon
Norwich
NR6 6LX
**************************************
These routines are Public Domain. Please give copies to all your friends,
but give them the routines as you got them, not your own customized version.
**************************************